package org.example.ioc;

import lombok.extern.slf4j.Slf4j;

import java.util.UUID;

@Slf4j
public class ServiceB {

    private final String name;

    public ServiceB() {
        this.name = UUID.randomUUID().toString();
        log.info("construct %s(%s)".formatted(this.getClass().getSimpleName(), this.name));
    }

    public String getName() {
        return name;
    }
}
